package org.dashboard.dao;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.dashboard.bean.AdChart;

import java.util.List;
import java.util.Map;

@Mapper
public interface AdChartMapper {
    int deleteByPrimaryKey(Integer chartId);

    int insert(AdChart record);

    int insertSelective(AdChart record);

    AdChart selectByPrimaryKey(Integer chartId);

    int updateByPrimaryKeySelective(AdChart record);

    int updateByPrimaryKeyWithBLOBs(AdChart record);

    int updateByPrimaryKey(AdChart record);


    List<AdChart> selectAdCharts();

    List<Map<String, Object>> loadUserRoleCharts(@Param("userId") Integer userId, @Param("resourceType") Integer resourceType);

    List<AdChart> selectAdChartsSearched(@Param("criteria")String criteria);
}